package com.rockchips.mediacenter.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.rockchips.mediacenter.application.MediaCenterApplication;
/**
 * @author GaoFei
 * 开机监听器
 */
public class BootReceiver extends BroadcastReceiver {
	public static final String TAG = "BootReceiver";
	@Override
	public void onReceive(Context context, Intent intent) {
		Log.i(TAG, "onReceive");
		if(android.os.SystemProperties.get("ro.config.low_ram","false").equals("false")&&
		android.os.SystemProperties.get("persist.sys.dlna.enable","false").equals("true")) {
            MediaCenterApplication.DLNA_FLAG = "start" ;
		    Intent deviceMonitorIntent = new Intent(context, DeviceMonitorService.class);
		    context.startService(deviceMonitorIntent);
		}
	}

}
